﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Green.AgileMapper
{
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
    public class MappingAttribute : MappingBaseAttribute
    {
        public string Name
        { get; set; }

        public bool IsConvertTo
        { get; set; }

        public bool IsConvertFrom
        { get; set; }

        public MappingAttribute(string name)
        {
            this.Name = name;
            this.IsConvertFrom = this.IsConvertTo = true;
        }

        public MappingAttribute()
        {
        }
    }
}
